/**
 * Created by 熊巧 on 2017/11/1.
 */

import java.io.File;


public class FileList {

    public static void getFileList(String strPath) {
        File dir = new File(strPath);
        File[] files = dir.listFiles(); // 该文件目录下文件全部放入数组
        for (int i = 0; i < files.length; i++)
            System.out.println(files[i]);
    }

    public static void main(String[] args) {
        getFileList(".");
    }
}
